<!-- 表格内容,此组件还用于生成导出文件,所以不应该依赖vue组件相关的上下文 -->
<script lang="ts" setup>
import {
	DANGER_SOURCE_LEVEL_OPTIONS,
	getEnumOptionsField,
  DANGER_SOURCE_SOURCE_OPTIONS
} from "@/config/enum-options";

defineOptions({ name: "SheetItem" });
</script>

<template>
	<el-table-column label="序号" width="60" type="index" fixed="left" />
	<!-- <el-table-column label="重大危险源" prop="name" /> -->
  <el-table-column v-slot="{ row }" label="重大危险源" prop="source">
		{{ getEnumOptionsField([...DANGER_SOURCE_SOURCE_OPTIONS], "label", row.source) }}
	</el-table-column>
	<el-table-column label="位置描述" prop="addressDesc" />
	<el-table-column label="危险物质" prop="dangerThings" />
	<el-table-column label="临界值" prop="criticalValue" />
	<el-table-column v-slot="{ row }" label="风险等级" prop="level">
		{{ getEnumOptionsField(DANGER_SOURCE_LEVEL_OPTIONS, "label", row.level) }}
	</el-table-column>
	<el-table-column label="责任人" prop="responsiblePerson" />
	<el-table-column label="联系电话" prop="connectPhone" />
	<el-table-column label="应急预案" prop="planName" />
</template>
